home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20031118-20041115 / 000035_fdc@columbia.edu_Tue Dec 2 12:23:22 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!not-for-mail
  2. From: Frank da Cruz <fdc@columbia.edu>
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: wierd scripting query via telnet
  5. Date: 2 Dec 2003 17:20:33 GMT
  6. Organization: Columbia University
  7. Lines: 23
  8. Message-ID: <slrnbspif1.1lh.fdc@sesame.cc.columbia.edu>
  9. References: <e516d9ec.0312020211.2fa9cb80@posting.google.com> <slrnbsp9gn.bcn.fdc@sesame.cc.columbia.edu> <m18ylvfab7.gnus@usa.net>
  10. Reply-To: fdc@columbia.edu
  11. NNTP-Posting-Host: sesame.cc.columbia.edu
  12. X-Trace: newsmaster.cc.columbia.edu 1070385633 19786 128.59.59.56 (2 Dec 2003 17:20:33 GMT)
  13. X-Complaints-To: postmaster@columbia.edu
  14. NNTP-Posting-Date: 2 Dec 2003 17:20:33 GMT
  15. User-Agent: slrn/0.9.7.4 (SunOS)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14711
  17.  
  18. In article <m18ylvfab7.gnus@usa.net>,
  19. those who know me have no need of my name wrote:
  20. : in comp.protocols.kermit.misc i read:
  21. :>At this point all the characters that arrived (except NULs) are in the
  22. :>Kermit variable \v(input).  
  23. :>To pass the value back to bash, you could write it out to a file.  
  24. : or perhaps capture it via command substitution:
  25. :   var=$(/path/to/kermit_script)
  26. If you had the Kermit script echo the material to stdout and then exit,
  27. and then you invoked the script from the Unix shell like this:
  28.  
  29.   export var=`somepath/kermit_script`
  30.  
  31. it would assign some stuff to $var but (a) you'd have to configure Kermit
  32. not to emit any extraneous messages (heralds, messages from init file, etc)
  33. and (b) the resulting text is likely to be "edited", e.g. by the removal
  34. of linebreaks.
  35.  
  36. - Frank
  37.